# This file contains the events that will be part of the game.


    
# First up, we define some simple events for the various actions, that
# are run only if no higher-priority event is about to occur.

init:
    $ event("breakfast", "act == 'breakfast'", event.solo(), priority=200)
    $ event("dinner", "act == 'dinner'", event.solo(), priority=200)
    $ event("swimming", "act == 'swimming'", event.solo(), priority=200)
    $ event("archery", "act == 'archery'",event.solo(), priority=200)
    $ event("horseback", "act == 'horseback'", event.solo(), priority=200)
    $ event("music_class", "act == 'music_class'", event.solo(), priority=200)
    $ event("hiking", "act == 'hiking'", event.solo(), priority=200)    
    $ event("canoeing", "act == 'canoeing'", event.solo(), priority=200)
    $ event("campfire", "act == 'campfire'", event.solo(), priority=200)
    $ event("arts", "act == 'arts'", event.solo(), priority=200)
    $ event("sailing", "act == 'sailing'", event.solo(), priority=200)
    $ event("stay_in", "act == 'stay_in'", event.solo(), priority=200)
    $ event("practice", "act == 'practice'", event.solo(), priority=200)
    $ event("go_for_walk", "act == 'go_for_walk'", event.solo(), priority=200)
    $ event("nature_studies", "act == 'nature_studies'", event.solo(), priority=200)
    $ event("orienteering", "act == 'orienteering'", event.solo(), priority=200)

label breakfast:
    scene bg lodge
    "I eat breakfast."  
    return
    
label dinner:
    scene bg lodge
    "I eat dinner."
    return    
    
label go_for_walk:
    "In the %(period)s, I walk by myself."  
    return
    
label nature_studies:
    "In the %(period)s, I study nature." 
    return
     
label orienteering:
    "We have fun in the %(period)s orienteering."   
    return
     
label stay_in:
    "I stay in the cabin during the %(period)s."  
    return
     
label practice:

    "I practice during the %(period)s."
    
    return
    

label sailing:

    "I go sailing in the %(period)s."
    
    "We get caught in a bad wind and don't make it back for hours."

    jump events_skip_period 
    
label swimming:
    scene bg swim

    "I went swimming in the %(period)s."
    
    $ physical +=5

    return

label archery:

    "I do some archery in the %(period)s."
    
    $ physical +=5
    
    return

label horseback:

    "In the %(period)s, I do some horseback riding."
    
    $ social += 5
    
    return
    
label music_class:
    scene bg lodge
    show activity music at truecenter
    
    "I learn to play all %(period)s."
    
    $ music_skill += 5
    
    return
    
label hiking:

    "I do some hiking."
    $ physical +=  5
    
    return

label canoeing:

    "I canoe in the %(period)s."
    
    $ physical += 5
    
    return
    
label campfire:

    "We have a campfire in the %(period)s."
    $ social += 5
    
    return
    
label arts:
    scene bg lodge
    show activity art at truecenter

    "I do arts and crafts in the %(period)s."
    $ art_skill += 5
    
    return
    
# Below here are special events that are triggered when certain
# conditions are true. 

# This is an introduction event, that runs once when we first go
# to class. 

init:
    $ event("introduction", "act == 'class'", event.once(), event.only())

label introduction:

    return


    
